package io.renren.modules.jxgkquestion.service.impl;

import io.renren.modules.jxgkquestion.dao.ScoreRankDao;
import io.renren.modules.jxgkquestion.entity.ScoreRankEntity;
import io.renren.modules.jxgkquestion.service.ScoreRankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ScoreRankServiceImpl implements ScoreRankService {
    @Autowired
    ScoreRankDao scoreRankDao;
    public List<ScoreRankEntity> findAmountRankBySubjectName(String scoreSubjectName){
        return scoreRankDao.findAmountRankBySubjectName(scoreSubjectName);
    }

    public List<ScoreRankEntity> findRateRankBySubjectName(String scoreSubjectName){
        return scoreRankDao.findRateRankBySubjectName(scoreSubjectName);
    }
}
